#include <iostream>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
using namespace std;
int loopflag = 1;
void func(int argc)
{
    loopflag=0;
}
int main(int argc, const char *argv[])
{
    string s;
    int i;
    double f;
    char s_c[10] = {0};
    while (loopflag) {
#if 0
        memset(s_c, 0, 10);
        getline(cin,s);
        memcpy(s_c, s.c_str(), s.size());
        cout << "s:" << s << "size:" << s.size() << endl;
        cout << "s_c:" << s_c << "size:" << strlen(s_c) << endl;
#endif
        getline(cin, s);
        if (s.size() <= 0)
            cout << "data is null" << endl;
        i = atoi(s.c_str());
        f = atof(s.c_str());
        cout << "i:" << i <<endl;
        cout << "f:" << f << endl;
    }
    return 0;
}
